<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: header.php 264 2013-09-23 08:20:06Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 264 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-23 08:20:06 +0000 (Mon, 23 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

if($_GET['error'] == '404') {
	header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
	header('Status: 404 Not Found');
}
header("Cache-Control: public, must-revalidate, max-age=3600, post-check=3600, pre-check=3600");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header('Content-type: text/html');
header('Connection: Keep-Alive'); 
header('Keep-Alive: timeout=300');

if(is_object($xajax)) {
	include('includes/xajax/xajax.misc.php');
	$xajax->processRequest();
}
?>
<!DOCTYPE html>
<html lang="<?php echo $_SESSION['language_code'] ?>" >
<head>
<meta charset="UTF-8">
<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

#################################################################################
Dieser Onlineshop ist der Suchmaschinen optimierter Onlineshop - SEO:mercari

Copyright(c) 2011-<?php echo date('Y') ?> 
www.seo-mercari.de ein Projekt von www.siekiera-media.de

Dieser Copyright darf nicht entfernt werden!
#################################################################################
-->
<?php
include(DIR_WS_MODULES.FILENAME_METATAGS);
include('includes/javascript/header_css.php');
?>
<script type="text/javascript" src="<?php echo href_link('includes/javascript/js/jquery-1.7.1.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo href_link('includes/javascript/js/jquery-ui-1.9.2.js'); ?>"></script>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<!--[if IE 8]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie.css);</style>
<![endif]-->

<!--[if IE 9]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie.css);</style>
<![endif]-->

<!--[if IE 10]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie.css);</style>
<![endif]-->

  <!--[if IE 6]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie7.css);</style>
  <![endif]-->

  <!--[if lt IE 7]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie7.css);</style>
  <![endif]-->

  <!--[if lte IE 5.5999]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie7.css);</style>
  <![endif]-->

  <!--[if gte IE 5.5]>
    <style type="text/css">@import url(templates/itdotmedia/css/ie7.css);</style>
  <![endif]-->
  
<?php
echo '<link href="http://fonts.googleapis.com/css?family=Strait" rel="stylesheet" type="text/css">';
echo '</head>'."\n".'<body class="'.str_replace(' ', '_', strtolower($browser->getBrowser())).'">'."\n";
if(strstr($PHP_SELF, FILENAME_CHECKOUT_SUCCESS) && GOOGLE_CONVERSION == 'true')
	require('includes/google_conversiontracking.js.php');

if(WARN_CONFIG_WRITEABLE == 'true') {
	if((file_exists(dirname($_SERVER['SCRIPT_FILENAME']).'/includes/configure.php')) &&
        (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']).'/includes/configure.php')) &&
		!file_exists('includes/local/configure.php')) {
		output_warning(WARNING_CONFIG_FILE_WRITEABLE);
	}
}

if(WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
	if (STORE_SESSIONS == '') {
		if (!is_dir(session_save_path()))
			output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
		elseif (!is_writeable(session_save_path()))
			output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
	}
}

if((function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true'))
	if (ini_get('session.auto_start') == '1')
		output_warning(WARNING_SESSION_AUTO_START);

if((WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true'))
	if (!is_dir(DIR_FS_DOWNLOAD))
		output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);

$smarty->assign('navtrail', $breadcrumb->trail());

if($_SESSION['account_type'] == '0')
	$smarty->assign('account', href_link(FILENAME_ACCOUNT, '', 'SSL'));
if($_SESSION['cart']->count_contents() > 0)
	$smarty->assign('cart_count', ' (<span id="box_cart_total_count">'.$_SESSION['cart']->count_contents().'</span>)');
$smarty->assign('cart', href_link(FILENAME_SHOPPING_CART, '', 'SSL'));

if(WHISLIST_BUTTON_SHOW == 'true') {
	if($_SESSION['wish_list']->count_contents() > 0)
		$smarty->assign('wish_list_count', ' ('.$_SESSION['wish_list']->count_contents().')');
	$smarty->assign('wish_list', href_link(FILENAME_WISH_LIST, '', 'SSL'));
}

if(CHECKOUT_AJAX_STAT == 'true')
	$smarty->assign('checkout', href_link(FILENAME_CHECKOUT, '', 'SSL'));
else
	$smarty->assign('checkout', href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$smarty->assign('checkout2_stat', (CHECKOUT_AJAX_STAT == 'true') ? 1 : 0);
$smarty->assign('store_name', TITLE);

if (isset($_SESSION['error_message']) && not_null($_SESSION['error_message']))
	$smarty->assign('error', '<span class="headerError">'. urldecode($_SESSION['error_message']).'</span>');
unset($_SESSION['error_message']);

if (isset($_SESSION['info_message']) && not_null($_SESSION['info_message']))
	$smarty->assign('info_message', '<span class="headerInfo">'.urldecode($_SESSION['info_message']).'</span>');
unset($_SESSION['info_message']);

include(DIR_WS_INCLUDES.FILENAME_BANNER);